ace (an) exam

Translations
вытащить экзамен на отлично
She managed to ace the exam after studying all night.
Она смогла вытащить экзамен на отлично после ночи за учебой.
Definitions
To perform extremely well on an exam, often achieving a very high score or a perfect score.